//
//  CHHomeTableViewCell.swift
//  Checked
//
//  Created by Shinolr on 1/10/19.
//  Copyright © 2019 shinolr_go. All rights reserved.
//

import UIKit

class CHHomeTableViewCell: UITableViewCell {
    
    @IBOutlet weak var card: CHShadowCard!
    @IBOutlet weak var showTitleLabel: UILabel!
    @IBOutlet weak var episodeTitleLabel: UILabel!
    
    var model: CHMyShowsModel? {
        didSet {
            showTitleLabel.text = model?.show?.title
            episodeTitleLabel.text = model?.episode.title
        }
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
        card.contentView.backgroundColor = UIColor(hex: 0xFEFFFF)
    }
    
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
